I have what I believe to be a simple problem, and I hope someone has an
answer that will make me slap my forehead and say, "Duh!". I am simply
loading a PICT from my resource file into an offscreen world and then
CopyBits-ing it to my main window. This was working fine, but I then
changed the PICT, making it bigger inthe process. The problem is that my
program seems to insist on using the old resource. I say this because
when I copy to the main window, I get garbage in the regions where there
should be new image data. I simply use GetPicture to load the PICT into
my offscreen world, and then I use good ol' CopyBits to copy from the
offscreen world to the main window. I'm at my wit's end. I've checked
all my Rects, and they're all correct. I pass CopyBits what the new Rect
should be (that is, the new, larger image) but it only draws the old image
plus garbage. I've tried creating a new resource, re-pasting the image
into it, and then using that new ID, but I get the same behavior. Any
suggestions would be much appreciated. Thank you very much.
Carlos Gonzalez
carlos@sprynet.com
+++++++++++++++++++++++++++
>From BHuey@worldnet.att.net (Hugh Johnson)
Date: Tue, 12 Nov 1996 09:04:23 -0500
Organization: AT&T WorldNet Services
In article <carlos-1111962310150001@206.175.97.3>, carlos@sprynet.com
(Carlos Gonzalez) wrote:
> Hello all,
>
> I have what I believe to be a simple problem, and I hope someone has an
> answer that will make me slap my forehead and say, "Duh!". I am simply
> loading a PICT from my resource file into an offscreen world and then
> CopyBits-ing it to my main window. This was working fine, but I then
> changed the PICT, making it bigger inthe process. The problem is that my
> program seems to insist on using the old resource. I say this because
> when I copy to the main window, I get garbage in the regions where there
> should be new image data. I simply use GetPicture to load the PICT into
> my offscreen world, and then I use good ol' CopyBits to copy from the
> offscreen world to the main window. I'm at my wit's end. I've checked
> all my Rects, and they're all correct. I pass CopyBits what the new Rect
> should be (that is, the new, larger image) but it only draws the old image
> plus garbage. I've tried creating a new resource, re-pasting the image
> into it, and then using that new ID, but I get the same behavior. Any
> suggestions would be much appreciated. Thank you very much.
Check all your rects _again_, check them 3 times after that, and check 'em
once more for good measure.
If rects aren't the problem, then the only possible problem is that your
compiler isn't updating the copy of the PICT resource that it's using for
the DrawPicture call. Go into your "Make" command and make sure the
compiler knows that you've changed that resource!
--
The universe is a figment of it's own imagination.
+++++++++++++++++++++++++++
>From squires@crl.com (Scott Squires)
Date: Tue, 12 Nov 1996 07:48:16 -0800
Organization: Puffin Designs
In article <carlos-1111962310150001@206.175.97.3>,
carlos@sprynet.com (Carlos Gonzalez) wrote:
>Hello all,
>
>I have what I believe to be a simple problem, and I hope someone has an
>answer that will make me slap my forehead and say, "Duh!". I am simply
>loading a PICT from my resource file into an offscreen world and then
>CopyBits-ing it to my main window. This was working fine, but I then
>changed the PICT, making it bigger inthe process. The problem is that my
>program seems to insist on using the old resource. I say this because
>when I copy to the main window, I get garbage in the regions where there
>should be new image data. I simply use GetPicture to load the PICT into
>my offscreen world, and then I use good ol' CopyBits to copy from the
>offscreen world to the main window. I'm at my wit's end. I've checked
>all my Rects, and they're all correct. I pass CopyBits what the new Rect
>should be (that is, the new, larger image) but it only draws the old image
>plus garbage. I've tried creating a new resource, re-pasting the image
>into it, and then using that new ID, but I get the same behavior. Any
>suggestions would be much appreciated. Thank you very much.
> The problem is that my
>program seems to insist on using the old resource.
Are you using the same PicHandle? Or modifying the picture resource
without saving it out?
>I get garbage in the regions where there
>should be new image data.
Did you increase the size of the GWorld to the new picture size?
Try doing an EraseRect on the GWorld before copying the pict over.
Make sure you SetGWorld correctly before drawing.
-scott
Scott Squires "Insert funny stuff here"
squires@crl.com
ScottSquir@aol.com
---------------------------
>From amcclain@il-icom.net (Andrew W. McClain)
Subject: Questions about shareware copyrights
Date: Thu, 31 Oct 1996 18:29:26 -0500
Organization: Illinois Internet Communications, Inc.
How much does a shareware copyright cost, how does one get one, and is it
really necessary?
+++++++++++++++++++++++++++
>From jerry@fvc.com (Jerry Whitnell)
Date: Sat, 02 Nov 1996 19:36:24 -0800
Organization: First Virtual Corp
In article <amcclain-3110961829270001@206.62.101.63>, amcclain@il-icom.net (Andrew W. McClain) wrote:
> How much does a shareware copyright cost, how does one get one, and is it
> really necessary?
Run, do not walk, and buy a copy of Copyright Your Software by Stephen Fishman. Published by Nolo Press, ISBN: 0-87337-260-3 http://www.nolo.com/item/cys.html.
--
Jerry Whitnell First Virtual Corp
jerry@fvc.com ** I don't buy anything marketed by junk email. **
+++++++++++++++++++++++++++
>From wdh@fresh.com (Bill Hofmann)
Date: Sun, 03 Nov 1996 13:52:55 -0800
Organization: Cypress Research
In article <amcclain-3110961829270001@206.62.101.63>, amcclain@il-icom.net
(Andrew W. McClain) wrote:
> How much does a shareware copyright cost, how does one get one, and is it
> really necessary?
A copyright costs nothing, as other respondents have pointed out.
Registering a copyright with the US Copyright Office costs $20 or so.
It's fairly easy, and what it does (besides get you junk mail) is gives
you the right to collect punitive damages should someone pirate your work
(and you sue and win).
What you should be sure to do is put "Copyright <date> <your name>"
somewhere in your program: the about box is one place, the 'vers' resource
another.
Filing a copyright is easy, there's fairly clear documentation in the
packet you can get from the copyright office. Essentially, you send a
copy of the source code. You can omit portions if they contain trade
secrets, there are exact details in the documentation.
-Bill
+++++++++++++++++++++++++++
>From ajmas@worldnet.fr (Andre-John Mas)
Date: Mon, 4 Nov 1996 23:13:48 +0100
Organization: SCT / Worldnet - Internet Provider & Information Exchange - Paris, France
Andrew W. McClain <amcclain@il-icom.net> wrote:
> How much does a shareware copyright cost, how does one get one, and is it
> really necessary?
If I were to send my self a sealed registered letter, that I did not
open would that help me in a copyright case. The registered letter
would contain everything to do with the software, source code, docs and